home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-04 / gs24src.zip / HISTORY.DOC < prev    next >
Text File  |  1992-03-24  |  63KB  |  1,626 lines

  1.    Copyright (C) 1989, 1992 Aladdin Enterprises.  All rights reserved.
  2.    Distributed by Free Software Foundation, Inc.
  3.  
  4. This file is part of Ghostscript.
  5.  
  6. Ghostscript is distributed in the hope that it will be useful, but
  7. WITHOUT ANY WARRANTY.  No author or distributor accepts responsibility
  8. to anyone for the consequences of using it or for whether it serves any
  9. particular purpose or works at all, unless he says so in writing.  Refer
  10. to the Ghostscript General Public License for full details.
  11.  
  12. Everyone is granted permission to copy, modify and redistribute
  13. Ghostscript, but only under the conditions described in the Ghostscript
  14. General Public License.  A copy of this license is supposed to have been
  15. given to you along with Ghostscript so you can know your rights and
  16. responsibilities.  It should be in a file named COPYING.  Among other
  17. things, the copyright notice and this notice must be preserved on all
  18. copies.
  19.  
  20. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
  21.  
  22. This file, history.doc, describes the changes in the various releases of
  23. Ghostscript.
  24.  
  25. For an overview of Ghostscript and a list of the documentation files, see
  26. README.
  27.  
  28. Version 2.4 (3/25/92)
  29. ===========
  30.  
  31. This is a major release that adds SuperVGA support, support for Metrics,
  32. settable device properties, and incremental font loading.  It also
  33. includes important performance improvements, based on rewrites of some key
  34. algorithms, and quite a few new Level 2 / Display PostScript facilities.
  35.  
  36. Procedures
  37. ----------
  38.  
  39. Fixes bugs:
  40.     - The rule for compiling gconfig.c didn't include the -I switches.
  41.     - .bat files were being distributed with a \n line terminator
  42. rather than \r\n.
  43.     - A CLOSE MODULE_LIST was needed after END_COMPILE: in the VMS
  44. command files.
  45.     - Unix systems couldn't handle multiple drivers with overlapping
  46. sets of files.
  47.     - -s<name> defined <name> as a null, rather than as an empty string.
  48.  
  49. Adds gconfig.ps to the list of needed configuration files.
  50.  
  51. Changes the way that the makefile handles nested .h files, so that it
  52. doesn't have to `touch' them.
  53.  
  54. Adds the loadallfonts procedure to gs_fonts.ps.
  55.  
  56. Changes the standard DOS configuration to include VGA, EGA, VESA, Epson,
  57. BubbleJet, and H-P printer drivers.
  58.  
  59. Renames ghost.mak as gs.mak, and gdevs.mak as devs.mak.
  60.  
  61. Adds a USE_ASM flag so that one can build a DOS version of Ghostscript
  62. without having an assembler.
  63.  
  64. Splits off common code from the two MS-DOS makefiles into tccommon.mak.
  65.  
  66. Replaces the COPYING and LICENSE files with a new LICENSE file containing
  67. version 2 of the GNU General Public License.
  68.  
  69. Removes DEVICES and DEVICE_OBJS from the makefiles, since they are no
  70. longer needed.
  71.  
  72. Adds a GS_DEVICE environment variable to supply a default device name if
  73. desired.
  74.  
  75. Adds ansihead.mak and unix-ansi.mak, to parallel [g]cc-head.mak and
  76. unix-[g]cc.mak, for other ANSI C compilers.
  77.  
  78. Changes the way that optional features are defined in the makefiles, so
  79. that they actually work.
  80.  
  81. Adds support for the Watcom C/386 compiler.
  82.  
  83. Allows # in the command line as equivalent to =, to compensate for
  84. brain-damaged MS-DOS shell.
  85.  
  86. Adds -sOUTPUTFILE= to set the output file or pipe.
  87.  
  88. Adds -dWRITESYSTEMDICT to leave systemdict writable.
  89.  
  90. Utilities
  91. ---------
  92.  
  93. Fixes bugs:
  94.     - pcharstr.ps insisted on having Subrs be present in the font.
  95.     - pcharstr.ps decoded negative numbers between -108 and -1131
  96. incorrectly.
  97.     - pfbtogs.ps didn't handle packets longer than 64K correctly.
  98.  
  99. Changes the bdftops utility so that it makes entries for UnderlinePosition
  100. and UnderlineThickness in FontInfo, and so that it always records a
  101. FullName (the FontName if no other is provided).
  102.  
  103. Changes the name of the pfbtops utility to pfbtogs, because groff already
  104. includes a program called pfbtops.
  105.  
  106. Adds the gslp utility for doing "line printing" of text files, similar to
  107. enscript + lpr.
  108.  
  109. Adds a new variable DITHERPPI that enables a different dither pattern,
  110. claimed to be better for printers.
  111.  
  112. Adds the font2c utility for compiling Type 1 fonts into C, so they can be
  113. linked into an executable rather than loaded dynamically.
  114.  
  115. Drivers
  116. -------
  117.  
  118. Fixes bugs:
  119.     - gdev_prn_copy_scan_lines was erroneously masking the last byte
  120. of data even on color printers, as was paintjet_print_page.
  121.     - The TruFax driver had a couple of compilation errors, since it
  122. hadn't been compiled in a while.
  123.     - The BGI driver sometimes didn't consult BGIPATH when looking for
  124. .BGI files.
  125.     - initclip did the wrong thing with memory devices.
  126.     - The BGI driver didn't look in BGIDIR for .BGI files.
  127.     - The Epson driver didn't set the right margin properly with
  128. ESC+Q.
  129.     - The BJ-10e driver was badly broken.
  130.     - gdev_prn_open/close_printer didn't reset the command list file,
  131. so it was taking quadratic time to print multi-page documents.
  132.  
  133. Adds color to the SunView driver.
  134.  
  135. Adds selectable resolution (75, 100, 150, or 300 DPI) to the
  136. DeskJet/LaserJet driver.
  137.  
  138. Changes gssetdev so that drivers can specify special libraries to be
  139. loaded, as well as object files.
  140.  
  141. Adds a driver for VESA-compliant SuperVGA displays.  This driver handles
  142. all resolutions from 640 x 400 up to 1280 x 1024, in 256-color mode.  The
  143. default is VGA resolution (640 x 480).
  144.  
  145. Adds a driver for the ATI Wonder SuperVGA card, and for SuperVGA cards
  146. using the Tseng Labs ET3000 or ET4000 chip such as the STB VGA EM-16 and
  147. the Orchid ProDesigner II (256-color modes only).
  148.  
  149. Adds a driver for Trident and Tseng Labs SuperVGA cards in 800 x 600,
  150. 16-color modes (for cards with only 256K of memory).
  151.  
  152. Adds user-contributed drivers for the Ricoh 4081, DEC LN03, Canon LBP-8II,
  153. and H-P DeskJet 500C printers.
  154.  
  155. Adds Tim Theisen's Ghostview changes to the X11 driver.
  156.  
  157. MAKES NON-BACKWARD-COMPATIBLE CHANGES TO THE DRIVER PROCEDURE INTERFACE as
  158. follows:
  159.  
  160.     - Changes map_rgb_color and map_color_rgb to always work in a
  161.         16-bit color value space, rather than a space defined by the
  162.         maximum number of distinct colors provided by the device.
  163.  
  164.     - Adds an argument to the output_page procedure to indicate
  165.         whether the procedure is being called for copypage or
  166.         showpage, and a num_copies argument.
  167.  
  168.     - Adds a gx_bitmap_id to the copy_ and tile_ procedures, so that
  169.         drivers can cache bitmaps in the server or device if they want
  170.         to.
  171.  
  172.     - Removes fill_trapezoid and tile_trapezoid.
  173.  
  174.     - Adds a new get_bits procedure for reading the bits back from the
  175.         driver buffer (when possible), replacing copy_scan_lines.
  176.         This procedure takes a new argument describing padding and
  177.         byte swapping, and returns a different value from
  178.         copy_scan_lines.
  179.  
  180.     - Adds get_props and put_props procedures for accessing arbitrary
  181.         additional properties of devices.  The interface is quite
  182.         complex, but provides a great deal of flexibility.
  183.  
  184. See drivers.doc for details.
  185.  
  186. Changes gdev_mem_bytes_per_scan_line to gdev_prn_bytes_per_scan_line.
  187.  
  188. Adds a user-contributed driver for DigiBoard, Inc.'s fax software.
  189.  
  190. Fonts
  191. -----
  192.  
  193. Changes Type1BuildChar so it uses the information from the Metrics
  194. dictionary in the font, if Metrics is present.
  195.  
  196. Changes findfont (.loadfont) so it recognizes .PFB fonts and can load them
  197. directly.  Also changes .loadfont to disable packing temporarily, because
  198. some fonts rely on procedures being writable (!).
  199.  
  200. Interpreter
  201. -----------
  202.  
  203. Fixes bugs:
  204.     - The hypot function is not available on some Unix systems.
  205.     - Ghostscript didn't flush and close files when exiting.
  206.     - In statusdict, the /margins procedure used .leftmargin, but
  207. /setmargins used .lmargin.
  208.     - An out-of-range putinterval would simply do nothing, rather than
  209. reporting an error.
  210.     - If an attempt to allocate a block larger than the allocator's
  211. chunk size (20K) failed, the allocator would erroneously think it had
  212. succeeded.
  213.     - The bind operator made the top-level procedure read-only, as
  214. well as interior procedures.
  215.     - gs.c copied 1 extra character for the value of strings defined
  216. on the command line with -s...=, which could smash the first byte of the
  217. next object in memory.
  218.     - copying a dictionary erroneously required the maxlength of the
  219. destination to be greater than or equal to the maxlength of the source,
  220. rather than the length of the source.
  221.     - undef didn't correctly decide when to mark a deleted entry as
  222. deleted vs. free; as a result, some keys couldn't be looked up properly
  223. after an undef.
  224.     - type1encrypt and type1decrypt didn't set the size of the result
  225. properly.
  226.     - cvi and cvr didn't allow leading or trailing whitespace in
  227. strings.
  228.     - cvs didn't cause an error if the destination string was too
  229. short.
  230.     - Many operators didn't check correctly for stack underflow (off
  231. by 1).
  232.     - `for' used reals, rather than integers, if the limit was a real,
  233. even if the initial value and increment were integers.
  234.     - `restore' didn't properly invalidate copies of the save object
  235. being restored from; `save dup restore restore' would crash.
  236.     - `restore' sometimes didn't undo stores into matrices that were
  237. stored into by operators.  (The identity matrix always had l_new set.)
  238.     - readline gave a rangecheck if the input line exactly filled the
  239. string.
  240.     - `--' as the last switch on the command line caused a crash
  241. rather than an error message.
  242.     - On MS-DOS systems, filenameforall didn't handle patterns with a
  243. drive or directory specifier properly.
  244.     - stroke sometimes called gz_draw_line_fixed even if the line went
  245. outside the clipping box by 1 pixel.
  246.  
  247. Changes the loop that binds procedure "operators" to entirely disable the
  248. handling of the typecheck error, rather than to use stopped.  This cuts
  249. initialization time significantly, and also eliminates about 35K of wasted
  250. space (for saving the stacks).
  251.  
  252. Changes the version "operator" so it returns 47.0.  Adds "revision" to
  253. define the Ghostscript version # x 100.
  254.  
  255. Adds gscurrentresolution and gssetresolution procedures for getting and
  256. setting the device resolution.
  257.  
  258. Adds -r<res> and -r<xres>x<yres> as command line options for setting
  259. device resolution.
  260.  
  261. Adds a facility for incrementally loading the individual CharStrings of a
  262. Ghostscript font from the disk.  This can save a lot of memory, at the
  263. expense of slower rendering.  (It is intended primarily for MS-DOS
  264. systems.)
  265.  
  266. Changes findlibfile to return the name of the file that was actually
  267. opened, as well as the file itself, when the operation succeeds.
  268.  
  269. Changes the name of the main entry to the interpreter from interpret to
  270. gs_interpret, because of a conflict with a Data General library procedure.
  271.  
  272. Adds the .setmetrics operator to set the metrics for the current
  273. character for Type 1 fonts.
  274.  
  275. Adds more LaserWriter-specific entries to statusdict.
  276.  
  277. Gives names to all the internal `operators', so they will print out
  278. reasonably when an error occurs.
  279.  
  280. Extends the status operator to accept a string and return file
  281. information, as defined for Level 2 PostScript.
  282.  
  283. Adds the filter operator and some specific filters: ASCII85Encode,
  284. ASCII85Decode, ASCIIHexEncode, ASCIIHexDecode, eexecDecode, NullEncode,
  285. PFBDecode, and the null case of SubFileDecode.
  286.  
  287. Extends the scanner to recognize the Level 2 << and >> tokens.
  288.  
  289. Adds a facility for extracting the text strings from a PostScript file and
  290. writing them out in a simple format (selected by -dASCIIOUT, implemented
  291. by gs_2asc.ps).
  292.  
  293. Implements all of the remaining Display PostScript facilities that are
  294. also in Level 2 (i.e., everything in section A.1.3 of the PostScript
  295. Language Reference Manual, Second Edition, that is not also in section
  296. A.1.2).  The virtual memory operations are all stubs; the new halftone
  297. options are not fully implemented.
  298.  
  299. Changes makeimagedevice to use a string of gray or RGB values, rather than
  300. an array of color objects, to specify the palette.  Removes
  301. currentgscolor and setgscolor from the interpreter, but leaves t_color
  302. objects in, since they may be useful later.
  303.  
  304. Adds getdeviceprops and putdeviceprops for manipulating device properties.
  305. Currently defined properties for all devices: InitialMatrix, HWResolution,
  306. HWSize, Name.  Currently defined properties for printers: BufferSpace,
  307. MaxBitmap, OutputFile.  OutputFile allows |command for piping on Unix
  308. systems.
  309.  
  310. Removes deviceparams and makedevice.  Adds devicedefaultmatrix.
  311.  
  312. Implements reversepath.
  313.  
  314. Makes copy work on devices.
  315.  
  316. MS-DOS specific
  317. - - - - - - - -
  318.  
  319. Fixes bugs:
  320.     - iutilasm.asm wouldn't assemble with newer versions of MASM if
  321. CPU_TYPE was set to 286 or above.
  322.     - CPU_TYPE=386 didn't properly substitute the faster
  323. multiply/divide routines under Turbo C++ or Borland C++, only under the
  324. original Turbo C.
  325.  
  326. Library
  327. -------
  328.  
  329. Fixes bugs:
  330.     - A curve whose first and last points were the same wouldn't get
  331. drawn at all.
  332.     - A bug in the Turbo C++ compiler generated bad code when shifting
  333. a long right by 1 bit.
  334.     - If stroking a dashed line ever encountered a segment that was
  335. completely blank, Ghostscript would indirect through a null pointer.
  336.     - arc and arcn gave an error if the radius was negative.
  337.     - stroke always used the general algorithm, even if the line was
  338. guaranteed to be thin.
  339.     - arc and arcn erroneously reduced the angles mod 360.
  340.     - Very large or negative 32-bit numbers in Type 1 fonts didn't
  341. work properly on MS-DOS systems (the ff0000 bits got set to zero). 
  342.     - Color printer devices rendering entirely in memory only
  343. allocated a monochrome-sized bitmap.
  344.     - clip and eoclip didn't intersect the paths properly in the
  345. general case.
  346.     - charpath erroneously rounded the current point to an integral
  347. value, causing characters to be spaced improperly.
  348.     - The definition of max_color_param got some compilers confused.
  349.     - charpath always used quadratic time and space, and dropped all
  350. but the last character when used with a Type 3 font.
  351.     - Stroking a path with a 180 degree angle would incorrectly miter
  352. instead of beveling.
  353.     - Type 1 fonts used the current flatness for curves, which could
  354. produce bad (and inconsistent) results.
  355.     - Stroking a degenerate line segment produced incorrect results.
  356.  
  357. Changes the character cache to use the UniqueID as the key, when
  358. available, instead of the font pointer.  This dramatically improves
  359. performance when fonts are getting removed and reloaded because of page
  360. isolation with save/restore.
  361.  
  362. Removes some unnecessary casts to (float) from gsmatrix.c and gscoord.c.
  363.  
  364. Changes the Type 1 interpreter so that it rounds line and curve endpoints
  365. to the center of the nearest half-pixel, and omits null line segments.
  366. This both speeds up rendering at small sizes and improves output quality.
  367.  
  368. Changes gs_deviceparams to return resolution as well as extent; changes
  369. gs_makedevice to accept resolution as well as extent.
  370.  
  371. Replaces the algorithm for approximating circular arcs with curves with a
  372. more accurate one.
  373.  
  374. Changes gs_point and gs_rect to use doubles rather than floats.
  375.  
  376. Adds gs_setmetrics, for overriding Type 1 font metrics for the current
  377. character.
  378.  
  379. Changes clipping to use lists of rectangles rather than path intersection.
  380.  This makes a big difference when clipping bitmaps (including characters).
  381.  
  382. Changes the character cache to discard entries incrementally, rather than
  383. clearing the entire cache when it fills up.
  384.  
  385. Changes the implementation of transfer functions to use a cached map,
  386. built when the transfer function is set.  This makes transfer functions
  387. work properly in all situations, including images.
  388.  
  389. Defines a .quit operator that takes an exit code, and redefines quit in
  390. terms of it.
  391.  
  392. Adds support for 16-bit-per-pixel devices in gdevmem.
  393.  
  394. Adds gs_copydevice and gs_deviceinitialmatrix; removes gs_deviceparams and
  395. gs_makedevice.
  396.  
  397. Changes setscreen to ensure that the cell is always at least 4x4 pixels in
  398. size.
  399.  
  400. Version 2.3 (8/28/91)
  401. ===========
  402.  
  403. This is a minor release to fix two bugs and add the PaintJet driver, which
  404. didn't make it into 2.2.
  405.  
  406. Utilities
  407. ---------
  408.  
  409. Changes the pstoppm utility so it counts pages correctly even in the
  410. presence of arbitrary saves and restores.
  411.  
  412. Drivers
  413. -------
  414.  
  415. Adds a new, "supported" PaintJet driver.
  416.  
  417. Changes the Epson driver to use ESC+D rather than ESC+\ for horizontal
  418. positioning, since many printers don't support the latter.
  419.  
  420. Adds horizontal double-density (two-pass) printing to the Epson driver, so
  421. it can do 240 x 60 and 360 x 180 densities.  (Vertical double density is
  422. not supported yet.)
  423.  
  424. Version 2.2 (6/1/91)
  425. ===========
  426.  
  427. The purpose of this release is to add save/restore, and a few
  428. miscellaneous Level 2 P*stScr*pt features such as undef.  It also includes
  429. major improvements in graphics quality and in handling of high-resolution
  430. printers.
  431.  
  432. Procedures
  433. ----------
  434.  
  435. Changes the version numbering to M.mpp rather than M.m.p, so that
  436. `version' can be a real number for those programs that insist on it.
  437.  
  438. Renames ghost.ps as gs_init.ps, gfonts.ps as gs_fonts.ps, and statusd.ps
  439. as gs_statd.ps.  The initialization files now all are named gs_*.ps.
  440.  
  441. Renames gdevs.{c,h,tl} as gconfig.{c,h,tl}.
  442.  
  443. Changes the relevant makefiles and command files so that a single build
  444. can contain several drivers that share code, e.g., the Epson driver and
  445. the DeskJet driver.
  446.  
  447. Changes gs_init.ps so it relies on an external gconfig.ps file rather than
  448. making a specific test for the presence of Level 2 features.
  449.  
  450. Adds an entry for uglyr.gsf to the makefile.
  451.  
  452. Removes the distinction between CCA and CCNA, since most of the files now
  453. contain constructs that require non-ANSI compilation on MS-DOS platforms.
  454.  
  455. Adds a `man' page for the ansi2knr utility.
  456.  
  457. Changes the documentation (use.doc) to show how to use -sDEVICE=<device>,
  458. or the selectdevice procedure, to select devices by name.
  459.  
  460. Adds DEVICE_DEVS to the makefiles (analogous to DEVICES and DEVICE_OBJS).
  461. This finally makes the make procedure fully automatic.
  462.  
  463. Adds the name of the initialization file (gs_init.ps) as a
  464. platform-specific makefile parameter, GS_INIT.
  465.  
  466. Removes the test program gt.{c,tr} from the fileset, since it is not
  467. useful to users.
  468.  
  469. Moves the Symbol encoding vector to a separate file (symbol_e.ps), from
  470. which it is loaded when first used.
  471.  
  472. Changes the error handler so it can handle errors that occur while reading
  473. the initialization files.
  474.  
  475. Extends ansi2knr so it can handle `void' and `...' in parameter lists.
  476.  
  477. Adds quit.ps to the set of installed files.
  478.  
  479. MS-DOS-specific changes
  480. - - - - - - - - - - - -
  481.  
  482. Adds the VGA and BGI drivers to the standard MS-DOS configuration, and
  483. makes VGA the default.
  484.  
  485. Adds a `+' and a newline at the end of gs.tr, to avoid problems with file
  486. transfer programs or editors that add a newline at the end of files.
  487.  
  488. Changes the name of msdos.mak to turboc.mak, and creates a new tbcplus.mak
  489. makefile for use with Turbo C++ and Borland C++.
  490.  
  491. Changes the extension of the loader response files from .tl to .tr.
  492.  
  493. Changes the default search path from c:/ghost and c:/ghost/fonts to c:/gs
  494. and c:/gs/fonts.
  495.  
  496. Changes the directory separator from `|' back to ';', since it appears
  497. that DOS can handle a ; in a command line if it is prefixed with \.
  498.  
  499. Unix-specific changes
  500. - - - - - - - - - - -
  501.  
  502. Changes the uses of install in unixtail.mak so they only install a single
  503. file at a time, which is all that the standard Unix install allows.
  504.  
  505. Removes the duplicate files (README/readme, LICENSE/license,
  506. COPYING/copying, Fontmap/fontmap).
  507.  
  508. Changes the ld flags from LDPLAT to LDFLAGS.
  509.  
  510. Adds XCFLAGS and XLDFLAGS.  These are concatenated with CFLAGS and LDFLAGS
  511. respectively.  The intention is that they be set from the `make' command
  512. line if desired.
  513.  
  514. VMS-specific changes
  515. - - - - - - - - - -
  516.  
  517. Repairs the omission of ZPACKED from the VMS build lists.
  518.  
  519. Drivers
  520. -------
  521.  
  522. Fixes bugs:
  523.     - The SunView driver produced semi-garbage on little-endian
  524. platforms (Sun-386i) because it didn't swap the bit order.
  525.     - The X driver would dump core if it couldn't open the display and
  526. the DISPLAY environment variable wasn't set.
  527.     - The X driver relied on white = 0, black = ones in a couple of
  528. places;
  529.     - The X driver would return an error, instead of clipping, if
  530. asked to display outside the window.
  531.     - The X driver would create inappropriately sized windows, because
  532. it believed the server's report of the screen resolution.
  533.  
  534. Adds Fran Taylor's Private Eye driver to gdevs.mak and the fileset (not
  535. supported by Aladdin Enterprises).
  536.  
  537. Adds Neil Ostroff's TruFax driver to gdevs.mak and the fileset (not
  538. supported by Aladdin Enterprises).
  539.  
  540. Makes the scratch file template for the printer drivers a per-platform
  541. quantity (gp_scratch_file_name_template).  Puts the default scratch files
  542. for Unix in /usr/tmp rather than /tmp.
  543.  
  544. Changes the SunView driver to prevent the Ghostscript window from being
  545. destroyed (which badly confuses the interpreter).
  546.  
  547. Extends the Epson driver to handle a variety of print densities in both X
  548. and Y, to handle 24-pin as well as 8-pin graphics, and to allow optional
  549. specification of default density in the makefile (gdevs.mak).
  550.  
  551. Refactors the printer drivers so that a single driver handles both DeskJet
  552. and LaserJet.  Adds LaserJet drivers that use the new compression modes on
  553. the LJ IId/IIp and LJ III.
  554.  
  555. Changes all the printer drivers to use band lists rather than bitmap
  556. paging as the buffering method.  (The individual drivers need only a
  557. one-line change to replace mem_copy_scan_lines with
  558. gdev_prn_copy_scan_lines with a different argument.)
  559.  
  560. Adds the halftone phase as additional arguments to tile_rectangle and
  561. tile_trapezoid.
  562.  
  563. Adds an entirely new and much simpler PaintJet driver, using the new band
  564. list interface.
  565.  
  566. Adds margin information to the device structure.  This is currently only
  567. relevant for printer devices.
  568.  
  569. Adds BGIPATH and BGIUSER environment variables, allowing additional
  570. control of the BGI driver.
  571.  
  572. Changes the x/y_pixels_per_inch member of the device structure from int to
  573. float.
  574.  
  575. Fonts
  576. -----
  577.  
  578. Patches gs_fonts.ps so definefont will add an isFixedPitch entry to
  579. FontInfo if there isn't one there.
  580.  
  581. Removes the old "type 7 path" encoding code from gs_fonts.ps.
  582.  
  583. Changes bdftops so it puts isFixedWidth and ItalicAngle entries in the
  584. FontInfo dictionary of the fonts it creates, since some P*stScr*pt
  585. programs rely on this.
  586.  
  587. Changes bdftops so it synthesizes as many missing characters as possible
  588. out of the ones that are there (in particular: synthesizes accents out of
  589. punctuation marks, and accented characters using seac.)  The results
  590. aren't all that good, but they're a lot better than having characters
  591. missing out of the font.
  592.  
  593. Utilities
  594. ---------
  595.  
  596. Adds a pfbtops utility for converting .PFB fonts to standard Ghostscript
  597. fonts.
  598.  
  599. Fixes bugs:
  600.     - ps2image didn't reset things properly between pages for
  601. multi-page documents.
  602.  
  603. Interpreter
  604. -----------
  605.  
  606. Makes Ghostscript recognize `-' alone as meaning that it should read from
  607. standard input as though it were a file.  This allows Ghostscript to
  608. accept a pipe as input.
  609.  
  610. Fixes bugs:
  611.     - seac in type1addpath used the current font's encoding, not
  612. StandardEncoding.
  613.     - type1decryptfile (eexec) didn't recognize binary (as opposed to
  614. hex) representation.
  615.     - Mentioning a name whose value was a no-access object caused an
  616. invalidaccess error.
  617.     - There was a bogus definition of `run' in zfile.c.
  618.     - The interpreter didn't handle end-of-file on stdin properly.
  619.     - Real numbers with an 'e' or 'E' but no decimal point were not
  620. recognized.
  621.     - On MS-DOS systems, inside strings, \ followed by a newline was
  622. not discarded properly.
  623.     - On MS-DOS systems, the long unsigned divide routine sometimes
  624. gave incorrect answers.  Among other things, this caused alternate-radix
  625. numbers sometimes to crash the interpreter.
  626.     - cvrs didn't do the right thing about reals or negative integers.
  627.     - .echo.mode was being reset with def instead of store, and was
  628. defined in systemdict rather than userdict.
  629.     - setgray and settransfer didn't interact properly.
  630.     - 16#80000000 was being interpreted as a signed integer (and
  631. converted to a real) rather than an unsigned one.
  632.     - atan returned 0 sometimes when it should have returned 180.
  633.     - currentcmykcolor was defined wrong.
  634.  
  635. Removes the filename operator, since no standard Ghostscript code used it,
  636. and it caused problems with some P*stScr*pt files.
  637.  
  638. Implements new operators: filenameforall, selectfont (as a procedure),
  639. stringmatch, undef.
  640.  
  641. Adds new standard procedures: selectdevice.
  642.  
  643. For MS-DOS, requires that the operand and execution stacks be located in
  644. the data segment, and uses short pointers to address them.  This produces
  645. significantly smaller and faster code.  (These changes are not visible to
  646. users or library clients.)
  647.  
  648. Changes the assignment of attribute bits, and adds new bits for
  649. save/restore and the garbage collector.  Changes many of the macros in
  650. store.h to support save/restore.  (These changes are not visible to users
  651. or library clients.)  Implements save and restore.
  652.  
  653. Moves type names from gs_init.ps to ghost.h and ztype.c.
  654.  
  655. Moves error names from gs_init.ps to errors.h and iinit.c.
  656.  
  657. Introduces gp.h as a documented interface to the platform-specific files.
  658.  
  659. Adds the -- switch, which allows Ghostscript programs to take arguments
  660. from the command line.
  661.  
  662. Changes many uses of the name `name' to something else, to avoid upsetting
  663. the Microsoft C compiler.
  664.  
  665. Really implements packed arrays -- they took the same amount of space as
  666. ordinary arrays in previous versions.
  667.  
  668. Changes exitserver in serverdict so that it just clears the stacks.  (This
  669. isn't the correct fix, but it will do as a workaround.)
  670.  
  671. Makes many miscellaneous small changes to pacify various compilers.
  672.  
  673. Changes gs_fonts.ps so that when "quiet" mode is selected (-q switch),
  674. Ghostscript doesn't print anything when loading fonts or when substituting
  675. for undefined characters.
  676.  
  677. Defines the name consisting of just a control-D as a no-op, because some
  678. P*stScr*pt-generating applications put control-Ds in their output.
  679.  
  680. Implements halftone phase (sethalftonephase and currenthalftonephase
  681. operators).
  682.  
  683. Removes the -E switch, since it is no longer useful.
  684.  
  685. Changes the -w and -h switches to a single -g (geometry) switch, with
  686. usage -g<width>x<height>.  Makes the -h switch, and a new -? switch, print
  687. usage help.
  688.  
  689. Implements correct handling of stack overflow errors (makes an array out
  690. of the contents of the overflowing stack, and resets the stack, before
  691. invoking the error handler).
  692.  
  693. Adds t_oparray (`operators' defined as procedures) and the makeoperator
  694. operator.  This is so that programs like the Distillery that rely on all
  695. operators being bound by `bind' will work properly.
  696.  
  697. Adds a new NOPAUSE flag to suppress the prompt and pause at copypage and
  698. showpage.
  699.  
  700. Library
  701. -------
  702.  
  703. Fixes bugs:
  704.     - gs_type1_interpret didn't store the encryption state or the skip
  705. count before returning to let the client handle a seac or an endchar in
  706. the middle of a seac.
  707.     - The definition of the Type 1 operator ce_testadd was based on
  708. wrong information; the operator takes only 2 operands and does something
  709. unknown.
  710.     - mem_true24_copy_mono wasn't incrementing the destination pointer
  711. if the color was transparent, leading to garbled characters.
  712.     - gx_lookup_fm_pair would sometimes look at one entry beyond the
  713. end of the cached font/matrix pair area.  (This probably had no practical
  714. effect.)
  715.     - gs_type1_interpret didn't save the current point when returning
  716. to the client for a callothersubr, causing some characters to be rendered
  717. displaced (such as some of the chess pieces in chess.ps).
  718.     - gs_setgray, gs_sethsbcolor, gs_setrgbcolor, gs_setflat, and
  719. gs_setlinewidth gave errors for out-of-range operands rather than forcing
  720. them into range.
  721.     - Transfer functions were not actually supported.
  722.     - The area fill algorithm failed on certain complex paths.
  723.     - The current point was sometimes defined when a BuildChar
  724. procedure was called.
  725.     - Stroking a degenerate line didn't display anything for round
  726. caps or joins.
  727.     - If the ends of a curve had exactly the same X coordinate, the
  728. curve sometimes wouldn't be displayed.
  729.     - Very thin lines that went outside the clipping region would
  730. sometimes be displayed as dashed, or not at all.
  731.     - The translation in a FontMatrix was ignored.
  732.     - Very wide, shallow lines would color extraneous pixels when
  733. using bevel or miter joins.
  734.     - Dashed lines didn't join properly at the beginning of a closed
  735. path.
  736.     - 0-degree arcs didn't add the appropriate line (possibly
  737. degenerate) to the path.
  738.     - gs_type1_interpret didn't reset the callsubr stack when starting
  739. the base character of a seac, which caused confusion if the accent's
  740. endchar fell inside a Subr.
  741.     - Non-monochrome memory memory devices weren't checking the
  742. arguments of the drawing procedures properly.
  743.     - The initial clipping rectangle for memory devices was being
  744. computed wrong.
  745.     - Null devices had a semi-infinite clipping rectangle instead of
  746. an empty one.
  747.     - gs_setlinewidth was treating negative arguments as zero, instead
  748. of taking the absolute value.
  749.     - imagemask with a dithered color used a solid color rather than
  750. the dithered one.
  751.  
  752. Tweaks the area fill and image rendering algorithms to be a little more
  753. liberal with paint when being used to render characters.
  754.  
  755. Changes the name of the 8-bit mapped color memory device from
  756. mem_mapped_color_device to mem_mapped8_color_device.
  757.  
  758. Changes the memory devices so that on little-endian platforms, they can
  759. store the bytes within a word in either order.  (Little-endian order
  760. allows efficient 32-bit updating, big-endian is required when displaying
  761. or writing to a printer or a file.)
  762.  
  763. Implements halftone phase.
  764.  
  765. Replaces the trapezoid fill algorithm with a much more accurate one
  766. inspired by a contribution from Paul Haeberli.  This also changes the
  767. graphics convention back to filling only pixels whose center falls within
  768. the region to be filled.
  769.  
  770. Changes the character cache to allocate headers and bits contiguously out
  771. of a single ring buffer.
  772.  
  773. Changes gs_imagemask and gs_imagemask_init to take a thickness adjustment
  774. parameter.
  775.  
  776. Changes gs_setcachedevice and gs_setcharwidth to take the graphics state
  777. as a parameter.
  778.  
  779. Renames gx_device_memory_bitmap_size as gdev_mem_bitmap_size,
  780. mem_copy_scan_lines as gdev_mem_copy_scan_lines, and
  781. mem_bytes_per_scan_line as gdev_mem_bytes_per_scan_line.
  782.  
  783. Version 2.1.1 (1/15/91)
  784. =============
  785.  
  786. This is a sub-release distributed to fix a few early bugs in 2.1, just in
  787. time for the new GNU master tape.
  788.  
  789. Build procedures
  790. ----------------
  791.  
  792. Removes all of the (undebugged) Level 2 code from the fileset, as well as
  793. the (unused) file gdevvga.c.
  794.  
  795. Changes the tar file so that the files are stored in the directory
  796. gs<version> rather than simply gs, e.g., gs211.
  797.  
  798. Interpreter
  799. -----------
  800.  
  801. Changes the scanner so that \ is recognized within strings regardless of
  802. whether the scanner is reading from a string or from a file.  This is
  803. compatible with newer P*stScr*pt interpreters, and with the newer
  804. P*stSc*pt language specification, but not with the older specification in
  805. the original PostScript Language Reference Manual.
  806.  
  807. Drivers
  808. -------
  809.  
  810. Fixes the max_value macro in gdevmem.c so that compilers won't complain
  811. about a left shift by 32.
  812.  
  813. Adds 'byte' to the list of types that gdevx.c must sidestep because header
  814. files use them.
  815.  
  816. Library
  817. -------
  818.  
  819. Changes the computation of penum->unpack in gsimage.c so as not to upset
  820. compilers that don't treat procedures and pointers to procedures as
  821. compatible types for conditional expressions.
  822.  
  823. Version 2.1 (12/31/90)
  824. ===========
  825.  
  826. This is primarily a bug fix release to clean up problems in 2.0.  It also
  827. implements a first cut at the new color operators.
  828.  
  829. Build procedures
  830. ----------------
  831.  
  832. Changes the separator for multiple directories in MS-DOS from ';' to '|',
  833. since there is no way to include a ';' in a command line.
  834.  
  835. Adds <dir>/fonts to the default search path, where <dir> is c:/ghost for
  836. MS-DOS systems and `pwd` for Unix systems.
  837.  
  838. Adds new documentation describing how to direct output to the printer.
  839.  
  840. Changes the PROCTYPE and USE8087 options in MSDOS.MAK to CPU_TYPE and
  841. FPU_TYPE.  The latter now indicates the type of FPU to generate code for,
  842. if any.
  843.  
  844. Drivers
  845. -------
  846.  
  847. Adds a driver for the Canon BubbleJet BJ10e.
  848.  
  849. Modifies the EGA driver to handle (non-standard) frame buffers larger than
  850. 64K.  Adds drivers for the VGA and for the EIZO MDB-10 (a 1024 x 768 frame
  851. buffer).
  852.  
  853. Changes the X driver so that it clips to the window dimensions, rather
  854. than reporting an error.
  855.  
  856. Notes that the H-P LaserJet driver, like the DeskJet driver, works under
  857. Unix as well as MS-DOS.
  858.  
  859. Adds support for 120 X DPI mode, and for the LQ-1500, to the Epson driver.
  860.  
  861. Fonts
  862. -----
  863.  
  864. Fixes bugs in bdftops:
  865.     - It was using /UniqueId instead of /UniqueID as the key for the
  866. font unique ID.  This effectively disabled the font cache.
  867.     - The definition for .notdef was bogus -- an invalid CharString.
  868.  
  869. Changes ghost.ps and gfonts.ps so that NullFont is the initial font,
  870. rather than Ugly.
  871.  
  872. Arranges things so that when attempting a font substitution, if the
  873. default font is not found, NullFont is used instead.
  874.  
  875. Extends bdftops so that if certain easily synthesized characters are
  876. missing from a font, it will attempt to synthesize them using available
  877. characters.
  878.  
  879. Interpreter
  880. -----------
  881.  
  882. Extends the -T switch to allow specifying a printf template for the
  883. arguments of the procedure being traced.
  884.  
  885. Fixes bugs:
  886.     - /0 was interpreted as equivalent to 0 (a number) rather than a
  887. literal name.
  888.     - packedarray was defined as being like array, instead of like
  889. array followed by astore.
  890.     - Many minor and harmless type mismatches (and a couple of very
  891. minor genuine bugs) were upsetting the Apollo C compiler.
  892.     - exp was incorrectly failing in certain cases with a negative
  893. first argument.
  894.     - copyscanlines incorrectly required at least 4 elements on the
  895. operand stack, although it correctly only used the top 3.
  896.     - readhexstring incorrectly read 1 byte even if the string length
  897. was zero.
  898.     - Not every place that expected an array would accept a packed
  899. array.
  900.     - Very complex paths (and infrequently other things) could produce
  901. a 'memory leak'.
  902.     - / alone would skip following whitespace and gather following
  903. characters, rather than creating an empty name.
  904.     - ghost.ps left newerror defined as true in $error, which resulted
  905. in an erroneous error report if a program executed a 'stop'.
  906.     - The definition of exitserver in serverdict didn't clear the
  907. stack.
  908.     - currentfile returned an executable file, rather than a literal
  909. one.
  910.     - setfont for Type 1 fonts didn't check the UniqueID in the font
  911. dictionary against the one in the font's Private dictionary.
  912.     - A value stored in a dictionary under the key /xxx couldn't be
  913. retrieved using the key (xxx), and vice versa.
  914.     - charpath with a Type 1 font on a string containing a 'space'
  915. would produce garbage (it released the parent path inappropriately).
  916.     - bytesavailable did not work properly for terminal input.
  917.  
  918. Changes the interface to the memory allocator so that it always takes an
  919. element size and an element count, like calloc instead of malloc (but note
  920. that alloc does *not* clear just-allocated blocks).  Gets rid of the
  921. special 'dynamic' allocation procedures.
  922.  
  923. Changes the random number operators to use a better implementation.
  924.  
  925. Changes the idiv operator so it will accept any numbers, not just
  926. integers, as arguments.  (The PostScript manual doesn't allow this, but
  927. implementations apparently do.)
  928.  
  929. Provides semi-fake but usable definitions for all of the color PostScript
  930. extensions, including a real implementation of colorimage.
  931.  
  932. No longer uses the name 'null', which is apparently reserved by Microsoft
  933. C.  Makes a number of other minor changes required to pacify the Microsoft
  934. C compiler.
  935.  
  936. Implements %statementedit and %lineedit.  (%statementedit is equivalent to
  937. %lineedit, which is wrong.)  Changes the interactive interpreter to use
  938. %statementedit.
  939.  
  940. Changes the scanner to accept null, ctrl-K (vertical tab), and ctrl-L
  941. (form feed) as whitespace.  Ctrl-L terminates a comment, null and ctrl-K
  942. do not.
  943.  
  944. Allows a literal string as the 'proc' argument(s) for image, imagemask,
  945. and colorimage.
  946.  
  947. Adds the following operators/procedures: arct, cleardictstack, deletefile,
  948. renamefile.
  949.  
  950. Defines =print as a synonym for =, for the benefit of LaserPrep.
  951.  
  952. Implements non-zero PaintType for the show operators (but not for
  953. charpath) for Type 1 fonts.
  954.  
  955. Adds the ISOLatin1Encoding encoding vector.
  956.  
  957. Renames currentcolor and setcolor as currentgscolor and setgscolor, to
  958. avoid conflict with the Level 2 PostScript names.  Removes colorhsb,
  959. colorrgb, hsbcolor, and rgbcolor.
  960.  
  961. Library
  962. -------
  963.  
  964. Fixes bugs:
  965.     - In a couple of places, a 0 was being passed as a pointer
  966. argument without casting, which confused the Microsoft C compiler.
  967.     - Image devices were not recognized properly in debugging
  968. configurations.
  969.     - Inverted-color monochrome image devices were not recognized
  970. properly.
  971.     - Images that exactly fill the drawing area rendered very slowly,
  972. because they erroneously used the general clipping algorithm.
  973.     - Images that are 1-for-1 with the device were incorrectly scaled
  974. by a factor of 8 in X.
  975.     - Rounding artifacts sometimes caused characters to be unevenly
  976. offset vertically by 1 pixel.
  977.     - Type 1 fonts that used the Flex feature resulted in garbled
  978. images.
  979.     - The show operator routines would incorrectly fill or stroke a
  980. path that existed at the time the show was started.
  981.     - setscreen truncated the cell size instead of rounding, which
  982. could produce off-by-1 anomalies.
  983.     - stroke would sometimes produce garbage (or nothing at all) for
  984. very narrow lines.
  985.     - path filling would only color the pixels whose centers fell
  986. inside the path: the Adobe specification requires coloring a pixel if any
  987. part of it falls inside the path.
  988.  
  989. Changes the Epson printer driver so that it drives the printer directly
  990. rather than writing to a file.
  991.  
  992. Changes pathbbox so that if the path is empty but there is a current
  993. point, it returns a null rectangle at the current point.
  994.  
  995. Changes gs_image_init to take an additional parameter (after bps) giving
  996. the number of samples per pixel (1, 3, or 4), and an indication of whether
  997. the samples for each pixel are together or separated (-3 or -4).
  998.  
  999. Renames the gs_image_data and gs_imagemask_data procedures as gs_image and
  1000. gs_imagemask, and removes the old versions of the latter.
  1001.  
  1002. Adds gs_colorimage.
  1003.  
  1004. Replaces Snoopy's color dithering algorithm with one contributed by Paul
  1005. Haeberli.
  1006.  
  1007. Changes gs_setgray, gs_[set]hsbcolor, and gs_[set]rgbcolor so that they
  1008. coerce arguments outside the range [0..1] back into the range, instead of
  1009. signalling an error.
  1010.  
  1011. Makes a number of minor changes required to pacify the Microsoft C
  1012. compiler.
  1013.  
  1014. Changes gs_arcto so that if the last argument is a null pointer, the
  1015. tangent points are not returned.
  1016.  
  1017. Removes gs_type1addpath, which is not useful.  (Clients must call
  1018. gs_type1_init and gs_type1_interpret directly.)
  1019.  
  1020. Implements the 'seac' opcode for Type 1 fonts, allowing fonts with accented
  1021. characters to display properly.
  1022.  
  1023. Implements the undocumented 'testadd' opcode for Type 1 fonts, which is
  1024. used by some Adobe fonts.
  1025.  
  1026. Renames gs_currentcolor and gs_setcolor as gs_currentgscolor and
  1027. gs_setgscolor.  Removes gs_colorhsb, gs_colorrgb, gs_hsbcolor, and
  1028. gs_rgbcolor.
  1029.  
  1030. Version 2.0 (9/12/90)
  1031. ===========
  1032.  
  1033. The main purpose of this release is to add fonts, support for multiple
  1034. devices, and imaging into memory.  It also fixes a number of miscellaneous
  1035. bugs.  (Unfortunately, accurate records of the bugs fixed are not
  1036. available.)  The changes were so extensive that we chose to increment the
  1037. major version number.
  1038.  
  1039. Miscellaneous
  1040. -------------
  1041.  
  1042. Doesn't attempt to open the .MAP file on Unix systems.
  1043.  
  1044. Adds mention of statusd.ps to interp.doc.
  1045.  
  1046. Notes that Turbo C 2.0, not 1.5, is required for building the MS-DOS
  1047. version.
  1048.  
  1049. Adds a DEVICES= line to the makefile, and allows multiple devices.
  1050.  
  1051. Documents, in interp.doc, the X Windows resources that Ghostscript
  1052. recognizes.
  1053.  
  1054. Adds three PostScript masters to the fileset: chess.ps (+ cheq.ps),
  1055. golfer.ps, and escher.ps.
  1056.  
  1057. Drivers
  1058. -------
  1059.  
  1060. Changes the names of all the device drivers.  See gdevs.mak for the
  1061. updated list.
  1062.  
  1063. Adds a (working) driver for SunView.
  1064.  
  1065. Adds drivers for the Sony NeWS frame buffer, and the Sony Microsystems
  1066. NWP533 printers.  These drivers were contributed by users, so we aren't
  1067. prepared to answer questions about them.
  1068.  
  1069. Adds a driver for the Borland Graphics Interface (BGI) for MS-DOS systems.
  1070. Note that to use this driver with a non-EGA/VGA display, you need a .BGI
  1071. file appropriate for your hardware.  (The Ghostscript executable includes
  1072. the EGA/VGA driver.)
  1073.  
  1074. Adds a driver for Epson printers.  The driver has only been tested on an
  1075. LX-800, and on an H-P DeskJet in FX-80 emulation mode, but may work on
  1076. other models.  The driver could be adapted to work on Unix systems, but as
  1077. distributed, it only works on MS-DOS systems.
  1078.  
  1079. Adds a driver for the Hewlett-Packard DeskJet printer.  The driver could
  1080. be adapted to work on Unix systems, but as distributed, it only works on
  1081. MS-DOS systems.
  1082.  
  1083. The X Windows driver no longer waits for the user to type a character
  1084. before bringing up the initial display.
  1085.  
  1086. Adds information to drivers.doc describing how to change the definition of
  1087. the device structure and procedure table.
  1088.  
  1089. Extends the tile_rectangle and tile_trapezoid driver procedures to
  1090. interpret color0 = color1 = gx_no_color_index as meaning that the tile is
  1091. actually colored, not a mask.
  1092.  
  1093. Build procedures
  1094. ----------------
  1095.  
  1096. Changes the tar file so it puts everything in a directory called gs.
  1097.  
  1098. Removes the -ansi switch for gcc (this was causing problems with <math.h>
  1099. on some systems).
  1100.  
  1101. Changes LDPLAT to the string -X, which is appropriate for most Unix
  1102. systems (but not for SunOS 4.n).
  1103.  
  1104. Adds EXTRALIBS to the makefile, for specifying additional libraries to be
  1105. linked in.
  1106.  
  1107. Adds a 'clean' target for 'make', to get rid of all temporary files, the
  1108. binaries, and the executable.
  1109.  
  1110. Changes names of system-specific files from gp-xxx.c to gp_xxx.c.
  1111.  
  1112. Adds support for VMS (gp_vms.c and ghost.dcl).
  1113.  
  1114. Creates a new file gdevs.mak, and reorganizes the other makefiles, so that
  1115. the choice of which device driver(s) to include is isolated in a single
  1116. line in the platform-specific makefile.
  1117.  
  1118. Changes the standard MS-DOS makefile so it builds for 8088/86 (not 80386),
  1119. with neither -DNOPRIVATE nor -DDEBUG.
  1120.  
  1121. Changes the name of the MS-DOS makefile from dos-ega.mak to msdos.mak, and
  1122. the Unix makefiles from ux-[g]cc-x.mak to unix-[g]cc.mak.
  1123.  
  1124. Updates drivers.doc to describe how to add new drivers in gdevs.mak.
  1125.  
  1126. Removes gdevs.ps: the drivers are now responsible for specifying the size
  1127. of the imaging region.
  1128.  
  1129. Interpreter
  1130. -----------
  1131.  
  1132. Adds a makefile macro GS_LIB_DEFAULT and an environment variable GS_LIB to
  1133. define a search path for the library (initialization and font) files, and
  1134. implements the -I switch for the same purpose (replacing -sLIB=, which was
  1135. never actually implemented).  See interp.doc for details.
  1136.  
  1137. No longer clears the operand stack between interactive inputs.  No longer
  1138. prints the contents of the operand stack after every input in debug mode.
  1139.  
  1140. Doesn't "eat" the character that the user types to proceed after a
  1141. showpage, unless it's an isolated <return>.
  1142.  
  1143. Changes the prompt so that it says
  1144.     GS>
  1145. if the operand stack is empty, or
  1146.     GS<n>
  1147. if there are n > 0 elements on the operand stack.
  1148.  
  1149. Adds -w and -h switches to the command line, equivalent to -dWIDTH= and
  1150. -dHEIGHT= except that they require numeric arguments.
  1151.  
  1152. Adds -q (quiet startup) switch to the command line, which suppresses some
  1153. initial messages and also has an effect equivalent to -dQUIET.
  1154.  
  1155. Fixes bugs:
  1156.     - = and == caused an error on some kinds of objects if the object
  1157. didn't have read access.
  1158.     - cvs didn't print operator names.
  1159.     - The definition of dynamic_begin in iscan.c caused the DEC VMS C
  1160. compiler to produce incorrect code.
  1161.     - mul didn't return a correct (real) result when multiplying a
  1162. very large integer by an integer that wasn't very large.
  1163.     - eq and ne didn't work on files, fonts, save objects, and some
  1164. operators.
  1165.     - The scanner would sometimes blow up on floating point numbers
  1166. beginning with a '.'.
  1167.     - flushfile didn't pop its argument from the stack.
  1168.     - put and putinterval would store into a packed array.
  1169.     - a few operators didn't check properly for stack underflow.
  1170.     - cvrs produced wrong output for radix values greater than 10.
  1171.     - The scanner would convert upper-case letters in alternate-radix
  1172. numbers wrong on Unix systems.
  1173.     - String comparisons other than equality often produced the wrong
  1174. result if the strings were of different lengths.
  1175.     - An ifelse as the last thing inside a forall would confuse the
  1176. execution stack.
  1177.     - There were some omitted casts and 'private' declarations that
  1178. made the GNU compiler unhappy.
  1179.     - There was a memory leak in the image[mask] operators that caused
  1180. 516 bytes to be permanently lost each time one of them was used.
  1181.     - Quoted strings of length greater than 50 and less than 100 would
  1182. get mangled when being read in.
  1183.     - The scanner didn't consume the whitespace character following a
  1184. token, so programs that read data out of the program file could get
  1185. confused.
  1186.     - Under rare circumstances, an object of size between 249 and 255
  1187. bytes could get allocated on top of another object.
  1188.  
  1189. Allows bind to bind packed arrays, even though they aren't normally
  1190. writable.
  1191.  
  1192. Changes the length operator to allow a name as the argument.  (The
  1193. PostScript manual doesn't allow this, but implementations apparently do.)
  1194.  
  1195. Changes the setcachedevice operator to allow the bounding box to be
  1196. specified as a 4-element array instead of 4 scalars.  (The PostScript
  1197. manual doesn't allow this, but implementations apparently do.)
  1198.  
  1199. Removes a line from ghost.ps that accidentally disabled the font cache.
  1200.  
  1201. Implements memory devices (makeimagedevice, copyscanlines, and makedevice
  1202. for image devices).  makeimagedevice is implemented only for 1, 8, 24, and
  1203. 32 bits per pixel.
  1204.  
  1205. Changes the deviceparams operator so it pushes a mark on the stack below
  1206. the parameters.  This is to allow for devices that have more than the
  1207. standard set of parameters.
  1208.  
  1209. Replaces defaultdevicename with two new operators, getdevice and
  1210. devicename.
  1211.  
  1212. Adds a flushpage operator that flushes any outstanding buffered output to
  1213. the screen.  This is not the same as copypage: on printers, copypage
  1214. actually prints a page, whereas flushpage may do nothing; on displays,
  1215. flushpage and copypage may both flush output to a server.
  1216.  
  1217. Adds an unread operator for pushing back a character into a file.
  1218.  
  1219. Adds a description of proposed grayimage and colorimage operators to
  1220. ghost.doc, even though they aren't implemented yet.
  1221.  
  1222. Changes the name of the currentfileposition operator to fileposition.
  1223.  
  1224. Removes the framedevice operator, since the new device operators supersede
  1225. it.
  1226.  
  1227. Adds a writeppmfile operator, for writing the contents of a memory device
  1228. to a ppm file.
  1229.  
  1230. Makes Ghostscript work even when the >> operator doesn't sign-extend
  1231. negative numbers.  (This has not been tested.)
  1232.  
  1233. Adds the Symbol encoding to ghost.ps.
  1234.  
  1235. Adds two new file-related operators, filename and findlibfile.  See
  1236. ghost.doc and interp.doc for details.
  1237.  
  1238. Adds type1encrypt and type1decrypt operators for manipulating Adobe Type 1
  1239. encoded fonts.
  1240.  
  1241. Changes the imagecharpath and addcharpath operators to type1imagepath and
  1242. type1addpath.  These operators now work with the Adobe Type 1 font
  1243. encoding.
  1244.  
  1245. Adds the type1decryptfile operator for reading Adobe Type 1 encrypted
  1246. fonts.
  1247.  
  1248. Library
  1249. -------
  1250.  
  1251. Fixes bugs:
  1252.     - curveto and lineto didn't check for the current point being
  1253. defined.
  1254.     - stringwidth would fail if there was no current point.
  1255.     - There were omitted casts that made the GNU compiler unhappy.
  1256.     - Line caps and joins didn't always work.
  1257.     - Dashed lines didn't work at all.
  1258.     - If you read out the current matrix while inside a BuildChar
  1259. procedure, the result was garbage.
  1260.     - image[mask] would crash if you gave it a single string with more
  1261. than 64K-1 pixels (MS-DOS only).
  1262.     - Filling with a gray pattern sometimes wrote into pixels beyond
  1263. the right edge of the region (MS-DOS only).
  1264.     - The font cache would mistake fonts for each other if both fonts
  1265. had a default (unsupplied) "unique ID".
  1266.     - When a character was entered into the font cache for the first
  1267. time, sometimes it would display as garbage and/or displaced vertically
  1268. from its proper position.
  1269.  
  1270. Implements gs_makeimagedevice, gs_copyscanlines, gs_getdevice,
  1271. gs_devicename, gs_flushpage, gs_writeppmfile, gs_type1encrypt,
  1272. gs_type1decrypt, gs_type1imagepath, and gs_type1addpath procedures
  1273. corresponding to the new operators in the interpreter (see preceding
  1274. section).
  1275.  
  1276. Changes [gs_]setdevice so that it does an erasepage when it first opens
  1277. the device.
  1278.  
  1279. Changes definition of gx_device structure as follows.  NOTE: THIS AFFECTS
  1280. ALL DRIVERS.
  1281.  
  1282.     - Removes bits_from_MSB (which wasn't actually used, in any case).
  1283.         Ghostscript now assumes officially, as it always did in
  1284.         practice, that device bitmaps are stored MSB first, i.e., X=0
  1285.         corresponds to the 0x80 bit in the first byte.
  1286.  
  1287.     - Removes the initial_matrix member, which wasn't actually being
  1288.         set up.
  1289.  
  1290.     - Adds a new member 'name', a string giving the device name.
  1291.  
  1292.     - Adds new members 'x_pixels_per_inch' and 'y_pixels_per_inch'.
  1293.         These are only used by the default initial_matrix procedure
  1294.         (see below).
  1295.  
  1296.     - Adds a new procedure 'output_page'.  The default implementation
  1297.         (gx_default_output_page) just calls the sync_output procedure.
  1298.  
  1299.     - Adds a new procedure 'get_initial_matrix'.  The default
  1300.         procedure uses the width, height, and x/y_pixels_per_inch
  1301.         members to compute the matrix, assuming that X values run from
  1302.         right to left, and Y values run from top to bottom.
  1303.  
  1304. Changes the names of the allocation procedure types gs_proc_alloc and
  1305. gs_proc_free to proc_alloc_t and proc_free_t, and moves them from gs.h to
  1306. std.h.
  1307.  
  1308. Makes Ghostscript work even when the >> operator doesn't sign-extend
  1309. negative numbers.  (This has not been tested.)
  1310.  
  1311. Version 1.3 (6/20/89)
  1312. ===========
  1313.  
  1314. This release should have had a lot more things in it, but time pressure
  1315. and the already long delay in getting it out made it necessary to push it
  1316. out the door in an incomplete state (e.g., no testing on X systems
  1317. whatsoever).
  1318.  
  1319. Interpreter
  1320. -----------
  1321.  
  1322. Makes -d and -D equivalent on the command line.  Adds a new switch -s / -S
  1323. that defines a name as a string rather than a token.
  1324.  
  1325. Arranges things so that if -sLIB=_a_prefix_ is defined on the command
  1326. line, (filename) run will look for _a_prefix_filename before giving up if
  1327. filename isn't the name of an accessible file.
  1328.  
  1329. Changes showpage from an operator to a procedure.  The definition of
  1330. showpage in ghost.ps does a copypage, beeps the console, waits for the
  1331. user to type a character (normally a <return>, since line buffering is
  1332. always enabled), and then does an erasepage and an initgraphics.
  1333.  
  1334. Adds a new initialization file, gdevs.ps, containing device-dependent
  1335. parameters.  The default window size for X Windows is properly set to 612
  1336. x 792, i.e., 8.5" x 11".
  1337.  
  1338. Adds a new optional initialization file, statusd.ps, that provides dummy
  1339. definitions for the names found in statusdict on LaserWriters.
  1340.  
  1341. Adds a new operator, getenv, to get information from the shell
  1342. environment.
  1343.  
  1344. Adds a new predefined operator, defaultdevicename, that returns either (X)
  1345. or (EGA) according to how the interpreter was built.
  1346.  
  1347. Adds a new type, devicetype, and new operators deviceparams, getscanlines,
  1348. makedevice, makeimagedevice, and setdevice.  Changes currentdevice to
  1349. return a device object rather than a set of parameters.
  1350.  
  1351. Makes the scanner recognize reals with 'e' exponent notation, and handle
  1352. reals with more than 9 digits.
  1353.  
  1354. Fixes a bug that made names starting with digits read incorrectly.
  1355.  
  1356. Fixes a bug in the exp operator that made it not pop its first argument
  1357. from the stack.
  1358.  
  1359. Fixes a bug in the rand operator that made it return negative values about
  1360. half the time.
  1361.  
  1362. Fixes a bug in equality comparison (eq, ne, and several other operators)
  1363. that made unequal operator objects occasionally appear to be equal on DOS
  1364. systems.
  1365.  
  1366. Fixes a bug in the bind operator that made it not work on packed arrays.
  1367.  
  1368. Changes the internal representation of dictionaries so they can be
  1369. expanded or contracted dynamically.  Adds a new operator, setmaxlength, to
  1370. change the allocated size of a dictionary.
  1371.  
  1372. Changes sstorei.h so that non-DOS compilers don't encounter the #pragma
  1373. directive used by Turbo C.
  1374.  
  1375. Restores the display mode (on MS-DOS systems) when exiting.
  1376.  
  1377. Fonts
  1378. -----
  1379.  
  1380. Makes undefined characters in the standard font display as tilde rather
  1381. than blank (or causing an error).  Unmapped character codes (those mapped
  1382. to .notdef in the encoding) still display as nothing, per the PostScript
  1383. manual.
  1384.  
  1385. Library
  1386. -------
  1387.  
  1388. Adds a new header file, gxbitmap.h, with some new documentation describing
  1389. the internal storage format for bitmaps.
  1390.  
  1391. Makes numerous internal changes in the character / font cache, affecting
  1392. many of the routines in gxcache.c.
  1393.  
  1394. Fixes a bug in gz_draw_line / gz_fill_trapezoid that made nearly
  1395. horizontal lines display wrong.
  1396.  
  1397. Fixes a bug in gs_scale that made scaling not work if the coordinate
  1398. system was rotated or skewed.
  1399.  
  1400. Extends the font cache so it will handle characters rotated by multiples
  1401. of 90 degrees.
  1402.  
  1403. Changes the second argument of gx_path_bbox and gx_path_is_rectangle to be
  1404. a gs_fixed_rect * rather than a fixed [4].
  1405.  
  1406. Changes gs_matrix_rotate so it handles multiples of 90 degrees as a
  1407. special case.
  1408.  
  1409. Changes the definition of the gx_device structure to accommodate the new
  1410. device operators, and adds corresponding library calls.
  1411.  
  1412. Changes the type for a device color index from int to gx_color_index
  1413. (equivalent to unsigned long).  ***NOTE***: this affects existing clients
  1414. and drivers in a non-trivial way on MS-DOS systems.
  1415.  
  1416. Changes gs_malloc and gs_free to take a client name string as an argument.
  1417.  
  1418. Usage procedures
  1419. ----------------
  1420.  
  1421. Changes the compilation rules for Unix systems to not use the -o and -c
  1422. compiler flags together, to be compatible with more versions of cc.
  1423.  
  1424. Changes the gcc makefile to use $(GCC) rather than gcc as the compiler
  1425. name.
  1426.  
  1427. Moves the -1 flag for the MS-DOS compiler from the cc*.bat files to the
  1428. makefile.
  1429.  
  1430. Changes CCDEBUG to CCFLAGS, and adds ASMFLAGS, in DOS makefile.
  1431.  
  1432. Adds -DFOR80386 and /DFOR80386 to enable use of 80386 instructions in
  1433. assembly code on DOS systems.
  1434.  
  1435. Merges the DEBUG and gs_DEBUG switches.  There is now only a single DEBUG
  1436. switch that affects both the interpreter and the library.
  1437.  
  1438. Adds a new compilation switch, -DNOPRIVATE, that makes private (static)
  1439. variables and procedures public for debugging and profiling (only needed
  1440. on DOS systems).
  1441.  
  1442. Adds the DOS executable (gs.exe and gs.map) to the distribution fileset.
  1443.  
  1444. Adds new platform-specific code files, gp-*.c, for a few things like
  1445. reading the clock.
  1446.  
  1447. Adds a new documentation file, drivers.doc, that describes the interface
  1448. between Ghostscript and device drivers.
  1449.  
  1450. Version 1.2 (2/22/89)
  1451. ===========
  1452.  
  1453. Interpreter
  1454. -----------
  1455.  
  1456. Adds the new facilities in version 25 of PostScript: //name for immediate
  1457. lookup, packed arrays (setpacking, currentpacking, packedarray operators),
  1458. and new font cache parameters (setcacheparams, currentcacheparams
  1459. operators).
  1460.  
  1461. Adds new operators (setfileposition, currentfileposition) for random
  1462. access to files.
  1463.  
  1464. Extends readhexstring to take either a string or a file, just like token.
  1465.  
  1466. Fixes a bug that caused the 'for' operator (and a couple of others) to
  1467. randomly smash memory locations on PC platforms.
  1468.  
  1469. Library
  1470. -------
  1471.  
  1472. Renames the init_device driver procedure as open_device, and adds a
  1473. corresponding close_device.
  1474.  
  1475. Adds new procedures to read and set the cache limit values (implementing
  1476. the currentcacheparams and setcacheparams operators).
  1477.  
  1478. Usage procedures
  1479. ----------------
  1480.  
  1481. Changes the name of the Unix makefile to ux-cc-x.mak, and adds a new Unix
  1482. makefile, ux-gcc-x.mak, for using gcc instead of cc.  (The latter doesn't
  1483. actually work yet.)
  1484.  
  1485. Changes the name of the single built-in font from uglyfont.cp to
  1486. ugly10.cp.
  1487.  
  1488. Version 1.1 (2/12/89)
  1489. ===========
  1490.  
  1491. Interpreter
  1492. -----------
  1493.  
  1494. Makes the scanner treat ^Z (ASCII code 26) as whitespace: it erroneously
  1495. treated ^R (ASCII code 22, or octal 26) as whitespace.
  1496.  
  1497. Makes the token and readline operators, and the syntax for comments,
  1498. recognize \r (code 13), \n (code 10), and \r\n as equivalent end-of-line
  1499. indicators.  The token and readline operators will skip over any of these
  1500. sequences at the end of a token or line respectively, and a comment will
  1501. read through any of these sequences.  The other file operators (read,
  1502. write, readstring, writestring) do nothing special with these characters.
  1503.  
  1504. Changes the debug switch name from -D to -Z.  Adds a -D switch for
  1505. defining names in systemdict from the command line.  Defines -DDEBUG for
  1506. printing out debugging information during initialization, and -DNODISPLAY
  1507. for suppressing display output.
  1508.  
  1509. Corrects a bug that prevented the error machinery from working -- in
  1510. version 1.0, errors always dumped the stacks and aborted interpretation.
  1511.  
  1512. Corrects a bug that made eq and ne not work for strings.
  1513.  
  1514. Makes the atan (arctangent) operator normalize its results according to
  1515. the PostScript convention.
  1516.  
  1517. Makes the div operator check for zero divisor.
  1518.  
  1519. Makes unimplemented operators (resetfile, echo, save, restore, strokepath,
  1520. reversepath) truly undefined.
  1521.  
  1522. Makes the interactive loop exit gracefully on end-of-file: in version 1.0
  1523. this caused an infinite loop.
  1524.  
  1525. Implements the status operator.
  1526.  
  1527. Corrects a bug that made the 'for' operator deliver garbage values if one
  1528. or more of the operands (start, increment, end) was a real.
  1529.  
  1530. Corrects a bug that made the arc and arcn operators not pop their operands
  1531. from the stack.
  1532.  
  1533. Corrects a bug that made the kshow operator crash the interpreter.
  1534.  
  1535. Corrects a bug that made the print operator fail on machines that don't
  1536. pass structure arguments by simply pushing the contents of the structure.
  1537.  
  1538. Adds a new operator, imagecharpath, to convert images to
  1539. addcharpath-compatible outlines.
  1540.  
  1541. Changes alloc and alloc_free to use char * rather than byte *, and
  1542. alloc_free to return void rather than int, making them compatible with the
  1543. library's expectations and with malloc/free.
  1544.  
  1545. Explicitly casts all expressions of the form (ptr1 - ptr2) used as
  1546. procedure arguments to unsigned, to handle an incompatibility between
  1547. Turbo C versions 1.5 and 2.0.
  1548.  
  1549. Changes some of the internal conventions for operators: operators that
  1550. push on the operand stack must check for overflow explicitly, and
  1551. operators that modify the execution stack must return a special code.
  1552. (See oper.h for details.)
  1553.  
  1554. Initialization (ghost.ps, gfonts.ps)
  1555. --------------
  1556.  
  1557. Modifies ghost.ps and gfonts.ps so they print debugging information only
  1558. if the name DEBUG is defined.  (Presumably the user will set this from the
  1559. command line with -DDEBUG.)
  1560.  
  1561. Changes ghost.ps so it initializes the nominal screen size to 640 x 350 on
  1562. MS-DOS systems as before, but to 612 x 792 on Unix systems, which is an
  1563. 8.5" x 11" page at 72 pixels per inch.
  1564.  
  1565. Library
  1566. -------
  1567.  
  1568. Corrects a bug that made the fill and eofill operators (gs_fill and
  1569. gs_eofill) not perform a newpath afterward.
  1570.  
  1571. Corrects the bug that made thin, nearly horizontal lines display wrong (as
  1572. a series of disconnected dots) in the MS-DOS implementation.
  1573.  
  1574. Fixes a bug in the EGA driver that often made it fill rectangular regions
  1575. with black around information being displayed in white.
  1576.  
  1577. Completely changes the internal representation of outline fonts, and
  1578. changes btoi.ps (a Ghostscript language program for converting bitmaps to
  1579. outlines) to use a new library call, gs_imagecharpath.
  1580.  
  1581. Changes the extension for outline font files from .gf to .cp.
  1582.  
  1583. Adds a new debugging switch, q, that traces all rectangle fill operations.
  1584.  
  1585. Adds a new debugging switch, v, that traces all device-level output calls.
  1586.  
  1587. Explicitly casts pointer differences passed as procedure arguments, as in
  1588. the interpreter.
  1589.  
  1590. Makes stringwidth work if there is no current point.  In version 1.0, this
  1591. gave a nocurrentpoint error.
  1592.  
  1593. Usage procedures
  1594. ----------------
  1595.  
  1596. Changes the name of the 'read me' file from READ.ME to README.
  1597.  
  1598. Removes a bogus line (invoking the 'mcopy' utility) from the makefile.
  1599.  
  1600. Splits up the makefile into a generic part (ghost.mak) and
  1601. platform-specific parts (dos-ega.mak, unix-x11.mak).  The latter are what
  1602. is actually executed.
  1603.  
  1604. Puts the definitions of the DEBUG and gs_DEBUG compilation flags into the
  1605. makefile instead of in ghost.h and gx.h respectively.
  1606.  
  1607. Changes the names of the documentation files to be a little less cryptic.
  1608. Changes all the file names to lower-case in the documentation.  Adds
  1609. installation information to make.doc.
  1610.  
  1611. Changes all function definitions (but not prototype declarations) to ANSI
  1612. syntax, and adds a preprocessing step (ansi2knr) to convert them to K&R
  1613. syntax on Unix systems.
  1614.  
  1615. Changes the normal MS-DOS link configuration to not assume the presence of
  1616. an 80x87 coprocessor, and describes how to increase performance if a
  1617. coprocessor is present.
  1618.  
  1619. Changes the names of all the interpreter .c files, except stream.c, to
  1620. begin with 'i'.
  1621.  
  1622. Version 1.0 (8/11/88)
  1623. ===========
  1624.  
  1625. First version released to the public.
  1626.